package com.xuetang9.t9.hotel.services;


import com.xuetang9.t9.hotel.beans.MaintainRoom;
import com.xuetang9.t9.hotel.mapper.condition.impl.MaintainRoomCondition;
import com.xuetang9.t9.hotel.utils.PageBean;
import com.xuetang9.t9.hotel.utils.ResponseResult;

/**
 * 房间操作
 * @author pang
 */
public interface IMaintainRoomService {
    /**
     * 添加信息
     * @param maintainRoom
     * @return
     */
    boolean save(MaintainRoom maintainRoom);

    /**
     * 删除信息
     * @param id
     * @return
     */
    boolean remove(Integer id);

    /**
     * 修改信息
     * @param maintainRoom
     * @return
     */
    boolean alter(MaintainRoom maintainRoom);

    /**
     * 查询信息
     * @param condition
     * @return
     */
    PageBean findByAll(MaintainRoomCondition condition);

    /**
     * 房间总记录条数
     * @param maintainRoomCondition
     * @return
     */
    Long findByCount(MaintainRoomCondition maintainRoomCondition);

    /**
     * 房间总页数
     * @param pageSize
     * @param maintainRoomCondition
     * @return
     */
    Integer pageCount(Integer pageSize, MaintainRoomCondition maintainRoomCondition);


}
